import request from '@/router/axios';

export const getList = (classId) => {
  return request({
    url: '/base/classBrand/findBrandByClass',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      id:classId
    }
  })
}
export const remove = (id,classId) => {
  return request({
    url: '/base/classBrand/delete',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      goodsClassId:classId,
      brandId:id
    }
  })
}

export const add = (row) => {
  return request({
    url: '/base/classBrand/addItem',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/base/classBrand/editItem',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const changeStatus = (userId, status) => {
  return request({
    url: '/base/classBrand/changeStatus',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      userId,
      status
    }
  })
}